import React, { Component } from 'react';
import { Route, Switch } from 'react-router-dom';
import Login from 'Pages/Login';
import Layout from 'Pages/Layout';
// 引入封装好的路由组件
import AuthRoute from 'components/AuthRoute';
// import { getToken } from 'utils/storage';
export default class App extends Component {
	render() {
		return (
			<div>
				<Switch>
					<Route path="/login" component={Login} />
					<AuthRoute path="/" component={Layout} />
				</Switch>
			</div>
		);
	}
}
